package com.example.forum.service;

import com.example.forum.model.Article;
import com.example.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {
    /**
     * 添加回复帖子
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);

    /**
     * 回复列表
     * @param articleId
     * @return
     */
    List<ArticleReply> selectByArticleId(Long articleId);


}
